//
//  UIImageView+ImgCategory.m
//  DJYJ
//
//  Created by apple on 2018/11/3.
//  Copyright © 2018年 CHF. All rights reserved.
//

#import "UIImageView+ImgCategory.h"

@implementation UIImageView (ImgCategory)

+ (UIImageView *)imageWithImgName:(NSString *)name superView:(UIView *)superView
{
    UIImageView * img = [[UIImageView alloc] init];
    img.image = [UIImage imageNamed:name];
    [superView addSubview:img];
    return img;
}

@end
